﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SecurityApi.DataAccess;
using SecurityApi.Business;

namespace SecurityApi.UnitTest
{
    [TestClass]
    public class UserApplicationUnitTest
    {
        [TestCategory("User Application")]
        [TestMethod]
        public void GetUserApplicaionsByUserNameTest()
        {
            string userName = @"user1@codeplex.com";
            int enterpriseId = 1;
            UserApplicationManager mgr = new UserApplicationManager();

            List<SecurityApi.Model.Application> apps = mgr.GetUserApplications(userName, enterpriseId); ;
            foreach (SecurityApi.Model.Application e in apps)
            {
                Debug.WriteLine(e.Name);
            }
        }


    }
}
